page {
  background-color: #f8f8f8;
}
@keyframes showPopup {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes hidePopup {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes showLayer {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100%);
  }
}
@keyframes hideLayer {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

.icon {
  font-size: 26upx;
}
.status {
  width: 100%;
  height: 0;
  position: fixed;
  z-index: 10;
  top: 0;
  /*  #ifdef  APP-PLUS  */
  height: var(--status-bar-height); //覆盖样式
  /*  #endif  */
  background-color: #f1f1f1;
  transition: opacity 0.05s linear;
}
.header {
  width: 100%;

  height: 100upx;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 10;
  /*  #ifdef  APP-PLUS  */
  top: var(--status-bar-height);
  /*  #endif  */
  .before,
  .after {
    width: 92%;
    padding: 0 4%;
    height: 100upx;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    /*  #ifdef  APP-PLUS  */
    top: var(--status-bar-height);
    /*  #endif  */
    transition: opacity 0.05s linear;
    .back {
      width: 125upx;
      height: 60upx;
      flex-shrink: 0;
      .icon {
        margin-left: -10%;
        width: 60upx;
        height: 60upx;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 42upx;
      }
    }
    .middle {
      width: 100%;
    }
    .icon-btn {
      width: 125upx;
      height: 60upx;
      flex-shrink: 0;
      display: flex;
      .icon {
        &:first-child{
          margin-right: 5upx;
        }
        width: 60upx;
        height: 60upx;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 42upx;
      }
    }
  }
  .before {
    .back {
      .icon {
        color: #fff;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 100%;
      }
    }
    .icon-btn {
      .icon {
        color: #fff;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 100%;

      }
    }
  }
  .after {
    background-color: #f1f1f1;
    .back {
      .icon {
        color: #666;
      }
    }
    .icon-btn {
      .icon {
        color: #666;
      }
    }
    .middle {
      font-size: 32upx;
      height: 90upx;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 0 7%;
      view {
        width: (100%/3);
        padding: 0 3%;
        margin: 0 3%;
        display: flex;
        justify-content: center;
        align-items: center;
        &.on {
          margin-bottom: -4upx;
          color: #f47952;
          border-bottom: solid 4upx #f47952;
        }
      }
    }
  }
}
.swiper-box {
  position: relative;
  width: 100%;
  height: 100vw;
  swiper {
    width: 100%;
    height: 100vw;
    swiper-item {
      image {
        width: 100%;
        height: 100vw;
      }
    }
  }
  .indicator{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 25upx;
    height: 40upx;
    border-radius: 40upx;
    font-size: 22upx;
    position: absolute;
    bottom: 20upx;
    right: 20upx;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.2);
  }
}
.info-box {
  width: 92%;
  padding: 20upx 4%;
  background-color: #fff;
  margin-bottom: 20upx;
  text-align: center;
}

.goods-info {
  .price {
    font-size: 46upx;
    font-weight: 600;
    color: #f47925;
  }
  .title {
    font-size: 30upx;
  }
}
.spec {
  .row {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0 0 30upx 0;
    .text {
      font-size: 24upx;
      color: #a2a2a2;
      margin-right: 20upx;
    }
    .content {
      font-size: 28upx;
      display: flex;
      flex-wrap: wrap;
      .serviceitem{
        margin-right: 10upx;
      }
      .sp {
        width: 100%;
        display: flex;
        view {
          background-color: #f6f6f6;
          padding: 5upx 10upx;
          color: #999;
          margin-right: 10upx;
          font-size: 20upx;
          border-radius: 5upx;
          &.on{
            border: solid 1upx #f47952;
            padding: 4upx 8upx;
          }
        }
      }
    }
    .arrow {
      position: absolute;
      right: 4%;
      .icon {
        color: #ccc;
      }
    }
  }
}
.comments {
  .row {
    width: 100%;
    height: 40upx;
    display: flex;
    align-items: center;
    margin: 0 0 30upx 0;
    .text {
      font-size: 30upx;
    }
    .arrow {
      font-size: 28upx;
      position: absolute;
      right: 4%;
      color: #17e6a1;
      .show {
        display: flex;
        align-items: center;
        .icon {
          color: #17e6a1;
        }
      }
    }
  }
  .comment {
    width: 100%;
    .user-info {
      width: 100%;
      height: 40upx;
      display: flex;
      align-items: center;
      .face {
        width: 40upx;
        height: 40upx;
        margin-right: 8upx;
        image {
          width: 40upx;
          height: 40upx;
          border-radius: 100%;
        }
      }
      .username {
        font-size: 24upx;
        color: #999;
      }
    }
    .content {
      margin-top: 10upx;
      font-size: 26upx;
    }
  }
}
.description {
  .title {
    width: 100%;
    height: 80upx;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26upx;
    color: #999;
  }
}
.footer {
  position: fixed;
  bottom: 0upx;
  width: 92%;
  padding: 0 4%;
  height: 99upx;
  border-top: solid 1upx #eee;
  background-color: #fff;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .icons {
    display: flex;
    height: 80upx;
    width: 260upx;
    align-items: center;
    justify-content: space-between;
    .box {
      width: 80upx;
      height: 80upx;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      .icon {
        font-size: 40upx;
        color: #828282;
      }
      .text {
        display: flex;
        justify-content: center;
        width: 100%;
        font-size: 22upx;
        color: #666;
      }
    }
  }
  .btn {
    height: 80upx;
    border-radius: 40upx;
    overflow: hidden;
    display: flex;
    margin-right: -2%;
    .joinCart,
    .buy {
      height: 80upx;
      padding: 0 40upx;
      color: #fff;
      display: flex;
      align-items: center;
      font-size: 28upx;
    }
    .joinCart {
      background-color: #f0b46c;
    }
    .buy {
      background-color: #f06c7a;
    }
  }
}
.popup {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  display: none;
  .mask{
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 21;
    background-color: rgba(0, 0, 0, 0.6);
  }
  .layer {
    position: fixed;
    z-index: 22;
    bottom: -70%;
    width: 92%;
    padding: 0 4%;
    height: 70%;
    border-radius: 20upx 20upx 0 0;
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    .content {
      width: 100%;
      padding: 20upx 0;
    }
    .btn {
      width: 100%;
      height: 100upx;
      .button {
        width: 100%;
        height: 80upx;
        border-radius: 40upx;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f47952;
        font-size: 28upx;
      }
    }
  }

  &.show {
    display: block;
    .mask{
      animation: showPopup 0.2s linear both;
    }
    .layer {
      animation: showLayer 0.2s linear both;
    }
  }
  &.hide {
    display: block;
    .mask{
      animation: hidePopup 0.2s linear both;
    }

    .layer {
      animation: hideLayer 0.2s linear both;
    }
  }
  &.none {
    display: none;
  }
  &.service {
    .row {
      margin: 30upx 0;
      .title {
        font-size: 30upx;
        margin: 10upx 0;
      }
      .description {
        font-size: 28upx;
        color: #999;
      }
    }
  }
  &.spec {
    .title {
      font-size: 30upx;
      margin: 30upx 0;
    }
    .sp {
      display: flex;
      view {
        font-size: 28upx;
        padding: 5upx 20upx;
        border-radius: 8upx;
        margin: 0 30upx 20upx 0;
        background-color: #f6f6f6;
        &.on {
          padding: 3upx 18upx;
          border: solid 1upx #f47925;
        }
      }
    }
    .length{
      margin-top: 30upx;
      border-top: solid 1upx #aaa;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 20upx;
      .text{
        font-size: 30upx;
      }
      .number{
        display: flex;
        justify-content: center;
        align-items: center;
        .input{
          width: 80upx;
          height: 60upx;
          margin: 0 10upx;
          background-color: #f3f3f3;
          display: flex;
          justify-content: center;
          align-items: center;
          text-align: center;
          input{
            width: 80upx;
            height: 60upx;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            font-size: 26upx;
          }
        }

        .sub ,.add{
          width: 60upx;
          height: 60upx;
          background-color: #f3f3f3;
          border-radius: 5upx;
          .icon{
            font-size: 30upx;
            width: 60upx;
            height: 60upx;
            display: flex;
            justify-content: center;
            align-items: center;

          }
        }
      }
    }

  }
}
.share{
  display: none;
  &.show {
    display: block;
    .mask{
      animation: showPopup 0.15s linear both;
    }
    .layer {
      animation: showLayer 0.15s linear both;
    }
  }
  &.hide {
    display: block;
    .mask{
      animation: hidePopup 0.15s linear both;
    }

    .layer {
      animation: hideLayer 0.15s linear both;
    }
  }
  &.none {
    display: none;
  }
  .mask{
    background-color: rgba(0,0,0,.5);
    position: fixed;
    width: 100%;
    height: 100%;
    top:0;
    z-index: 11;
  }
  .layer{
    width: 92%;
    position: fixed;
    z-index: 12;
    padding: 0 4%;
    top: 100%;
    background-color: rgba(255,255,255,0.9);
    .list{
      width: 100%;
      display: flex;
      padding:10upx 0 30upx 0;
      .box{
        width: 25%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        image{
          width: 13.8vw;
          height: 13.8vw;
        }
        .title{
          margin-top: 10upx;
          display: flex;
          justify-content: center;
          width: 100%;
          font-size: 26upx;
        }
      }
    }
    .btn{
      width: 100%;
      height: 100upx;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 28upx;
      border-top: solid 1upx #666666;
    }
    .h1{
      width: 100%;
      height: 80upx;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 34upx;
    }

    .wscnph{
      width: 100%;
      height: 80upx;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 34upx;
    }
  }
}

.footer-btn{
  width: 80upx;
  height: 80upx;
  display: flex;
  align-items: center;
  justify-content: center;

  &-bt::after{
    border: none;
  }

  button{
    width: 80upx;
    height: 80upx;
    background: #fff;
    padding: 0;
    margin: 0;
  }

  image{
    width: 80upx;
    height: 80upx;
  }
}
